<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" errorPage="hello.jsp" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<title>学生主页</title>
</head>
<body>
<jsp:include page="title.jsp" /><br/>

<font color="red"><s:actionerror/></font>
<font color="red"><s:actionmessage /></font>

<h3 align="center">已注册课程如下：</h3><br/>
	<table align="center">
	<tr>
		<th>&nbsp;&nbsp;课程号&nbsp;&nbsp;</th>
		<th>&nbsp;&nbsp;进入课程&nbsp;&nbsp;</th>
	</tr>
	<s:iterator value="#request.courses" >
   	  <tr>
   	   	<td>
   	   		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   	   		<s:property value="courseID" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   	   		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   	   	</td>
   		<td>	
   		<s:form action="startCourse.action">
   			<input type="hidden" name="courseID" value="<s:property value="courseID" />">
   			<input type="submit" class="btns" value="<s:property value="courseName" />"> 
   		</s:form> 
   		</td>
   	 </tr>
   	 <tr>
   	 	<td></td><td></td>
   	 </tr>
   	</s:iterator>
   	</table>
   	<br/>
   	
   

</body>
</html>